﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProfileOrderControl.ascx.cs" Inherits="ProfileOrderControl" %>
<style type="text/css">
    .style1
    {
        width: 60%;
    }
    .style2
    {
        width: 259px;
    }
    .style3
    {
        width: 14px;
    }
    .style4
    {
        width: 80%;
    }
    .style7
    {
        width: 163px;
        height: 23px;
    }
    .style8
    {
        width: 127px;
        height: 23px;
    }
    .style9
    {
        height: 23px;
    }
    .style10
    {
        width: 75%;
    }
    .style11
    {
        width: 127px;
    }
    .style12
    {
        width: 163px;
    }
</style>

<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
<p>
    &nbsp;</p>
<table align="center" class="style1">
    <tr>
        <td align="center" >
            <asp:Button ID="btnYourProfile" runat="server" onclick="btnYourProfile_Click" 
                Text="Your Profiles" />
        </td>
        <td class="style3">
            &nbsp;</td>
        <td align="center">
            <asp:Button ID="btnYourOrder" runat="server" onclick="btnYourOrder_Click" 
                Text="Your Order" />
        </td>
    </tr>
</table>
<asp:Panel ID="pnProfiles" runat="server" Height="325px" Visible="False">
    <br />
    <table align="center" class="style4">
        <tr>
            <td class="style7">
            </td>
            <td class="style8">
            </td>
            <td class="style9">
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <h3 align="center">
                    Change Your Password</h3>
            </td>
        </tr>
        <tr>
            <td class="style12" width="20%">
                Old Password</td>
            <td class="style11">
                <asp:TextBox ID="txtOldPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td width="60%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtOldPass" ErrorMessage="Old Pass cannot let blank" 
                    ValidationGroup="ChangePass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style12" width="20%">
                New Password</td>
            <td class="style11">
                <asp:TextBox ID="txtNewPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td width="60%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtNewPass" ErrorMessage="New pass cannot let blank" 
                    ValidationGroup="ChangePass"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style12" width="20%">
                Confirm New Password</td>
            <td class="style11">
                <asp:TextBox ID="txtConNewPass" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td width="60%">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtConNewPass" 
                    ErrorMessage="Confirm new Pass cannot let blank" ValidationGroup="ChangePass"></asp:RequiredFieldValidator>
                <br />
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtNewPass" ControlToValidate="txtConNewPass" 
                    ErrorMessage="Confirm new pass is not the same" ValidationGroup="ChangePass"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style12" width="20%">
                &nbsp;</td>
            <td class="style11">
                <strong>
                <asp:Label ID="lblStatusChangePass" runat="server"></asp:Label>
                </strong>
            </td>
            <td width="60%">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12" width="20%">
                <asp:Button ID="btnChangePass" runat="server" Text="ChangePass" 
                    ValidationGroup="ChangePass" onclick="btnChangePass_Click" />
            </td>
            <td class="style11">
                &nbsp;</td>
            <td width="60%">
                <asp:Button ID="btnClear" runat="server" Text="Clear" ValidationGroup="Clear" 
                    onclick="btnClear_Click" />
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
</asp:Panel>
<asp:Panel ID="pnOrder" runat="server">
    <br />
    <table align="center" class="style10">
        <tr>
            <td align="center">
                <asp:GridView ID="gridViewOrder" runat="server" AutoGenerateColumns="False" 
                    EnableModelValidation="True" Width="100%">
                    <Columns>
                        <asp:ImageField DataImageUrlField="ImgUrl" HeaderText="Image">
                            <ControlStyle Height="75px" Width="100px" />
                        </asp:ImageField>
                        <asp:BoundField DataField="RES" HeaderText="Resolution" />
                        <asp:BoundField DataField="Quantity" HeaderText="Quantity" />
                        <asp:BoundField DataField="TPrice" HeaderText="Price" />
                        <asp:BoundField DataField="PaymentDetail" HeaderText="Payment" />
                        <asp:BoundField DataField="OrderStatus" HeaderText="Order Status" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Panel>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>

